package com.requiem.hist_group_manage_springboot.mapper;

import com.requiem.hist_group_manage_springboot.model.GroupModel;
import com.requiem.hist_group_manage_springboot.model.StudentModel;
import com.requiem.hist_group_manage_springboot.model.TeacherModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GroupMapper {
    //查
    List<GroupModel> getGroupList();

    GroupModel getGroupExit(String name);

    GroupModel getGroupByID(Integer id);

    List<StudentModel> getStudent(Integer groupId);

    List<TeacherModel> getTeacher(Integer groupId);

    //增
    int addGroup(GroupModel GroupModel);

    //删
    int deleteGroup(Integer id);

    //修
    int editGroup(GroupModel GroupModel);

    //搜索
    List<GroupModel> getSearchList(GroupModel groupModel);
}
